package com.woniuxy.carlife.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author fx
 * @ClassName:ServiceRoyaltyParam
 * @Description: 抽成规则制定
 * @date 2021/4/12 15:49
 **/

@ApiModel(value = "抽成规则制定param类")
@Data
public class ServiceRoyaltyParam {

    @NotNull(message="规则名不能为空")
    @ApiModelProperty(value = "规则名")
    private String royaltyRuleName;

    @NotNull(message="规则详情介绍不能为空")
    @ApiModelProperty(value = "规则详情介绍")
    private String royaltyRuleInfo;

    @NotNull(message="对应服务类别id不能为空")
    @ApiModelProperty(value = "对应服务类别id")
    private Integer serviceCategoryId;

    @NotNull(message="平台抽成比率不能为空")
    @ApiModelProperty(value = "平台抽成比率(小数)")
    private BigDecimal royaltyRatio;

    @ApiModelProperty(value = "规则状态(使用中/未使用/删除)")
    private String royaltyRuleStatus;
}
